/*
 *  Copyright 2010 Miao.
 * 
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 * 
 *       http://www.apache.org/licenses/LICENSE-2.0
 * 
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *  under the License.
 *
 *  @(#)SecurityCodeImage.java    0.2 01/19/2010
 */

package image;

import java.io.IOException;
import java.io.OutputStream;

/**
 * 验证码图像引擎接口
 * @author Miao
 * @version 0.2
 * @since 0.2
 */
public interface SecurityCodeImage {

    /**
     * 输出验证码图像
     * @param securityCode 验证码
     * @param output 输出流
     * @throws IOException 当操作output流发生问题时抛出此异常
     * @since 0.2
     */
    public void exportSecurityCode(String securityCode, OutputStream output) throws IOException;
}
